﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SilverlightApplication1.Interfaces;

namespace SilverlightApplication1.Controls
{
    public partial class VerticalPath : AnimatedControl
	{
        public VerticalPath()
		{
			// Required to initialize variables
			InitializeComponent();
		}
                
	    public override void RunAnimation()
        {
            Syganl.Visibility = Visibility.Visible;
            ActiveStoryBoard.Begin();
        }

        private void VerticalPathAnimation_Completed(Object sender, EventArgs e)
        {
            ActiveStoryBoard.Stop();
            Syganl.Visibility = Visibility.Collapsed;
            InvokeAnimationCompleted();
        }
	}
}